﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib uri="/jstl/cout" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%
String path = request.getContextPath();
%>
<head>
<title>用户职位选择</title>
<link href="<%=request.getContextPath()%>/style/content.css" rel="stylesheet" type="text/css" />
</head>

<body>

<form id="fm" name="fm" method="post">
<input value='' type='hidden' class="normal_btn" name='deptId' />
<input value='' type='hidden' class="normal_btn" name='poseId' />
<table width="100%" height="530" cellpadding="0" cellspacing="0">
  <tr>
    <td align="center" background="<%=path%>/img/chana/BJ-BJ.jpg">
    <table cellspacing="0" cellpadding="0">
      <tr>
        <td width="611" height="121" align="center" valign="bottom" background="<%=path%>/img/chana/login1.jpg">
        <table width="540" >
            <tr>
	              <td height="22" width="220" align="center" ><strong>职位名称</strong></td>
	              <td align="center" width="170"><strong>所属部门</strong></td>
	              <td align="center" width="120"><strong>职位选择</strong></td>
            </tr>
        </table>
        </td>
      </tr>
      <tr>
      	<td align="center" background="<%=path%>/img/chana/login2.jpg">
      		<table width="540" cellpadding="1" cellspacing="1" class="TableList">  
            <c:forEach items="${poseList}" var="item">
				<tr >
					<td width="220" align="center">${item.poseName}</td>
					<td width="170" align="center">${item.poseCode}</td>
					<td width="120" align="center">
						<input value='职位选择' type='button' class="normal_btn" name='poseSelect' onclick="menuShow('${item.orgId}','${item.poseId}','${item.poseType}','${item.poseBusType}');"/>
					</td>
				</tr>
			</c:forEach>
			</table>
		 </td>
	   </tr>	 	
       <tr>
        	<td height="34" background="<%=path%>/img/chana/login3.jpg">&nbsp;</td>
       </tr>
	   <tr>
  			<td heght="34">
  			<table width="540" cellspacing="0" cellpadding="0">
			<tr>
			<td width="9%">&nbsp;</td>
		    <td width="91%" align="right"><input value='退出' type='button' class="normal_btn" name='logout' onclick="goOut();" /></td>
			</tr>
  			</table>
  			</td>
  		</tr>
      </table>
   </td>
  </tr>
</table>   
</form>
<script type="text/javascript">
    //modified by andy.ten@tom.com 增加POSE_TYPE参数
	function menuShow(i,j,poseType,poseBusType) {
		var fm=document.fm;
		fm.deptId.value=i;
		fm.poseId.value=j;
		fm.action = "<%=path%>/common/MenuShow/menuDisplay.do?deptId="+i+"&poseId="+j+"&poseType="+poseType+"&poseBusType="+poseBusType;
		fm.submit();
	}
	function goOut() {
		window.location.href = "<%=path%>/common/UserManager/logout.do";
	}
</script>
</body>
</html>